#!/bin/bash
DATE=`date +%Y%m%d%H%M`
NAME=xxx-admin
cd ../feel-admin && docker build -t xxx/${NAME}:$DATE .
#docker部署方式
docker push xxx/${NAME}:$DATE
docker stop ${NAME}
docker rm ${NAME}
docker run -it -m 2000MB --name=auth -p 10081:10081 -d  xxx/${NAME}:$DATE

#k8s部署方式
#kubectl set image deployment/${NAME} ${NAME}=youzan.com/vote-saas/${NAME}:$DATE -n vote-server
